{if isset($form)}
<form class="{foreach $form->getClasses() as $class} {$class}{/foreach}"{foreach $form->getAttributes() as $attribute => $value} {$attribute}="{$value}"{/foreach}>
{foreach $form->getElements() as $element}
	{include file="form/elements/{$element->getType()}.tpl"}
	<br/>
{/foreach}
</form>
{/if}